﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace Gamev1
{
    public class Zombie : Enemy
    {
        public Zombie()
        {
            power = 8;
            hitDelay = 300f;
        }

        #region Methods

        public override void AI(GameTime gameTime)
        {
            if (canSeeCharacter)
            {
                if (currentHealth <= calculateHealth(100) && currentHealth >= calculateHealth(25))
                {
                    chase(speed);
                }
                else
                {
                    power = 12;
                }
            }
            else if (!canSeeCharacter)
            {
                move();
            }
        }
        #endregion
    }
}
